#define _CRT_SECURE_NO_WARNINGS
#include "binaryTree.h"

int main()
{
	BT* node1 = buynode(6);
	BT* node2 = buynode(5);
	BT* node3 = buynode(7);
	BT* node4 = buynode(1);
	BT* node5 = buynode(3);
	BT* node6 = buynode(8);

	node1->left = node2;
	node1->right = node3;
	node2->left = node4;
	node2->right = node5;  
	node3->right = node6;
	
	/*preorder(node1);
	printf("\n");
	Inorder(node1);
	printf("\n");
	Postorder(node1);*/
	int k = KlevelSize(node1, 2);
	printf("%d", k);
	return 0;
}